package com.ityu.myapi.entity;


import com.ityu.common.base.entity.Base2Entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.validation.constraints.Max;


@Entity(name="t_user")
@Table(appliesTo = "t_user",comment = "用户信息")
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class UserEntity extends Base2Entity {
    @Column(columnDefinition = "VARCHAR(128) COMMENT '名字'")
    private String name;
    @Column(columnDefinition = "TEXT COMMENT '性别'")
    private Integer sex;
    @Max(200)
    private Integer age;
}
